package com.rpc.controller;

import com.providera.service.UserService;
import com.rpc.com.rpc.util.SocketClientUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class TestController {

    private UserService userService = SocketClientUtil.getBean(UserService.class);

    @RequestMapping("/test")
    public String test(){
        return "hello world";
    }

    @RequestMapping("/getUserInfo")
    public String getUserInfo(){
        String info = userService.getInfo();
        return info;
    }


}
